package com.bootemp.mapper;

import com.bootemp.bean.Admin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

public interface AdminMapper {
    @Select(value = "select * from admin where aname=#{aname} and apwd=md5(#{apwd})")
    public Admin one(Admin a);
    @Select(value = "select * from admin where aname=#{aname} and apwd=md5(#{apwd})")
    public Admin one2(Map<String,Object> data);
    @Select(value = "select * from admin where aname=#{params.aname} and apwd=md5(#{params.apwd})")
    public Admin one3(@Param(value = "params") Map<String,Object> data);
}
